class_name UnitStats
extends Resource


enum UnitType {
	PLAYER,
	ENEMY
}


@export var name: String
@export var type: UnitType
@export var icon: Texture2D
## 生命值
@export var health: int = 1
## 每波增加的生命值
@export var health_increase_per_wave: int = 1
## 伤害
@export var damage: int = 1
## 每波增加的伤害值
@export var damage_increase_per_wave: int = 1
## 速度
@export var speed: int = 300
## 运气
@export var luck: float = 1.0
## 格挡几率
@export var block_chance: float = 0.0
## 掉落金币
@export var gold_drop: int = 1